<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="keywords" content="互联网信息安全技术手段公共服务平台" />
  <meta name="description" content="互联网信息安全技术手段公共服务平台" />
  <title>互联网信息安全技术手段公共服务平台</title>
  <link href="static/css/owl.carousel.css" rel="stylesheet" />
  <link href="static/css/owl.transitions.css" rel="stylesheet" />
  <link href="static/css/owl.theme.css" rel="stylesheet" />
  <link rel="stylesheet" type="text/css" href="static/css/jquery.fancybox.css" media="screen" />
  <link rel="stylesheet" href="static/css/mycss.css" />
  <link rel="stylesheet" href="static/css/bootstrap.min.css" />
  <link rel="stylesheet" href="static/css/style.css">
  <link rel="stylesheet" href="static/layui/css/layui.css" media="all">
  <script src="static/js/jquery-3.2.1.min.js"></script>
  <script src="static/js/laydate/laydate.js"></script>
  <script src="static/js/owl.carousel.js"></script>
  <script src="static/js/jquery.easings.min.js"></script>
  <script type="text/javascript" src="static/js/jquery.fancybox.js"></script>
  <script src="static/js/myjs.js"></script>
  <script src="static/js/lodash.js"></script>
  <script src="static/plugins/layer-v1.9.0/layer/layer.js"></script>
  <script src="static/js/jquery-form.js"></script>
  <script src="static/layui/layui.js" charset="utf-8"></script>
  <script src="static/js/bootstrap.min.js"></script>
  <script src="static/js/bootstrap-paginator.js"></script>
</head>

<body>
  <div class="center main-box">
    <div class="form-search-box clear">
      <form class="form-inline">
        <div class="form-moren">
          <div class="form-group">
            <label for="enterprise_name">企业名称：</label>
            <input type="text" class="form-control text-box" id="enterprise_name">
          </div>
          <div class="form-group">
            <label for="registered_address">注册地：</label>
            <input type="text" class="form-control text-box" id="registered_address">
          </div>
           <div class="form-group">
            <label for="evalNum">表单编号：</label>
            <input type="text" class="form-control text-box" id="evalNum">
          </div>
        </div>
        <div class="form-more" style="display: block;">
          	<div class="form-group">
	            <label for="production_unit">承建单位：</label>
	            <input type="text" class="form-control text-box" id="production_unit">
	        </div>
	        <div class="form-group">
	            <label for="bureau_address">申请业务：</label>
<!-- 	            <input type="text" class="form-control text-box" id="apply_business" style="width:185px;"> -->	
              <select id="apply_business" class="form-control text-box">
                      <option value="IDC(不含互联网资源协作)">IDC(不含互联网资源协作)</option>
                      <option value="IDC(仅限互联网资源协作)">IDC(仅限互联网资源协作)</option>
                      <option value="CDN">CDN</option>
                      <option value="ISP">ISP</option>
                <select>
	        </div>
	        <button type="button" class="btn btn-primary" onclick="query(1)">查询</button>
            <button type="button" class="btn btn-warning btn-clear-form">重置</button>
        </div>
        <div style="display:none" class="form-moren" id="result_oper_button">
            <button type="button" class="btn btn-primary" onclick="importData(1)" data-toggle="modal" data-target="#eval_upload">全部导入</button>
            <button type="button" class="btn btn-primary" onclick="importData(2)" data-toggle="modal" data-target="#eval_inc_upload">增量导入</button>
            <button type="button" class="btn btn-primary" onclick="eval_result()" data-toggle="modal" data-target="#eval_result_oper">单条新增</button>
            <button type="button" class="btn btn-primary" onclick="exportData()">全部导出</button>
        </div>
      </form>
    </div>
    <div class="table-responsive table-box">
      <table class="table table-hover table-bordered">
        <thead>
          <tr>
            <th width="30">序号</th>
            <th width="150">企业名称</th>
            <th width="80">表单编号</th>
            <th width="140">申请业务</th>
            <th width="60">表单状态</th>
            <th width="50">注册地</th>
            <th width="60">承建单位</th>
             <th width="55">信安系统处理能力（Gbps）</th>
            <th width="55">机房/节点数量</th>
            <th width="55">链路情况</th>
            <th width="70">联系人信息</th>
            <th id="result_oper_th" style="display:none"  width="170">操作</th>
          </tr>
        </thead>
        <tbody id="tread"></tbody>
      </table>
    </div>
    <div class="page-box">
         <div class="total">共&nbsp;
             <span class="num-color" id="total_data"></span>&nbsp;条，总共&nbsp;
             <span class="num-color" id="total_pages"></span>&nbsp;页
         </div>
         <div class="dropdown" id="dropdown">
             <button type="button" class="btn btn-default" data-toggle="dropdown" id="pageNum">
                 <strong>10</strong>条/每页
                 <span class="caret"></span>
             </button>
             <ul class="dropdown-menu">
                 <li>
                     <a href="#"><strong>10</strong>条/每页&nbsp;</a>
                 </li>
                 <li>
                     <a href="#"><strong>30</strong>条/每页&nbsp;</a>
                 </li>
                 <li>
                     <a href="#"><strong>50</strong>条/每页&nbsp;</a>
                 </li>
             </ul>
         </div>
         <div class="page-group">
             <ul id="pageLimit"></ul>
         </div>
         <div class="jump-box">
             <input type="text" class="form-control text-box" id="jump_page">
             <button class="btn btn-primary" onclick="jumpQuery()">跳转</button>
         </div>
     </div>
  </div>
   <div class="modal fade list-dialog" id="subDialog" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg">
       <div class="modal-dialog" role="document" style="width:1100px;">
           <div class="modal-content">
               <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                   </button>
               </div>
               <div class="modal-body" id="modalBody">
                 
               </div>
           </div>
       </div>
   </div>
   
   <div class="modal fade list-dialog" id="eval_result_oper" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg">
       <div class="modal-dialog" role="document" style="width:1100px;">
           <div class="modal-content">
               <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                   </button>
               </div>
               <div class="modal-body" id="modalResultOper" style="overflow:hidden;">
                    <div class="center" style="height: 100%;overflow:auto">
					    <h3 class="work-form-title">评测结果信息</h3>
					    <form class="table-work-form" enctype="multipart/form-data">
					      <div class="table-responsive ">
					        <table class="table table-bordered">
					          <thead>
					            <tr>
					              <th width="70"></th>
					              <th width="150"></th>
					              <th></th>
					              <th></th>
					            </tr>
					          </thead>
					          <tbody>
					            <tr>
					              <td rowspan="5" class="td-info">单位基本信息</td>
					              <td class="label-input">企业名称</td>
					              <td>
					                <input id="enterprise_name_oper" type="text" class="form-control input-sm" />
					              </td>
					              <td>
					                <div class="form-group">
					                  <label for="" class="label-input">承建单位</label>
					                  <input id="production_unit_oper" type="text" class="form-control input-sm" />
					                </div>
					              </td>
					            </tr>
					            <tr>
					              <td class="label-input">申请业务</td>
					              <td>
					                <input id="apply_business_oper"  type="text" class="form-control input-sm" />
					              </td>
					              <td>
					                <div class="form-group">
					                  <label for="" class="label-input">注册地</label>
					                  <input id="registered_address_oper" type="text" class="form-control input-sm" />
					                </div>
					              </td>
					            </tr>
					            <tr>
					              <td class="label-input">信安系统处理能力(Gbps)</td>
					              <td>
					                <input id="handleInfo_oper" type="text" class="form-control input-sm" />
					              </td>
					              <td>
					                <div class="form-group">
					                  <label for="" class="label-input">联系人</label>
					                  <input id="contacts_oper" type="text" class="form-control input-sm" />
					                </div>
					              </td>
					            </tr>
					            <tr>
					              <td class="label-input">联系方式</td>
					              <td>
					                <div class="form-group">
					                  <label for="" class="label-input">固定电话</label>
					                  <input id="tel_oper" type="text" class="form-control input-sm" />
					                </div>
					              </td>
					              <td>
					                <div class="form-group">
					                  <label for="" class="label-input">移动电话</label>
					                  <input id="moveTle_oper" type="text" class="form-control input-sm" />
					                </div>
					              </td>
					            </tr>
					            <tr>
					              <td class="label-input">电子邮件</td>
					              <td colspan="2">
					                <input id="eMail_oper" type="text" class="form-control input-sm" />
					              </td>
					            </tr>
					          </tbody>
					        </table>
					      </div>
					      <div class="table-responsive table-margin">
					        <table class="table table-bordered link-info-table">
					          <thead>
					            <tr>
					              <th width="70"></th>
					              <th></th>
					            </tr>
					          </thead>
					          <tbody>
					            <tr>
					              <td class="td-info">覆盖情况</td>
					              <td >
					                <table class="table table-bordered table-th-padding nest-table">
					                  <thead>
					                    <tr>
					                      <th>覆盖业务链路类型/名称</th>
					                      <th>链路带宽(Gbps)</th>
					                      <th>所属省份</th>
					                      <th>机房名称</th>
					                      <th width="50"><span class="add" id="addCoverInfo">+</span></th>
					                    </tr>
					                  </thead>
					                  <tbody id="coverInfoList">
					                  </tbody>
					                </table>
					              </td>
					            </tr>
					          </tbody>
					        </table>
					      </div>
					      <div class="table-responsive table-margin">
					        <table class="table table-bordered ">
					          <thead>
					            <tr>
					              <th width="70"></th>
					              <th></th>
					            </tr>
					          </thead>
					          <tbody>
					            <tr>
					              <td class="td-info">机房情况</td>
					              <td>
					                <table class="table table-bordered table-th-padding nest-table">
					                  <thead>
					                    <tr>
					                      <th>机房所在省份</th>
					                      <th>所属地市</th>
					                      <th>机房名称</th>
					                      <th>机房详细地址</th>
					                      <th width="50"><span class="add" id="addHouseInfo">+</span></th>
					                    </tr>
					                  </thead>
					                  <tbody id="houseInfoList">
					                  </tbody>
					                </table>
					              </td>
					            </tr>
					          </tbody>
					        </table>
					      </div>
					    </form>
					    <div class="table-responsive table-margin">
					    	<button type="submit" id="submit" class="btn btn-primary" onclick="result_oper_submit()">提交</button>
					    	<button type="button" class="btn btn-primary" class="close" data-dismiss="modal" aria-label="Close" id="closeWin">关闭</button>
					    </div>
					  </div>
               </div>
           </div>
       </div>
   </div>
   
   <div class="modal fade list-dialog" id="eval_upload" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg">
       <div class="modal-dialog" role="document" style="width:800px">
           <div class="modal-content">
               <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                   </button>
               </div>
               <div class="modal-body" id="modalUpload">
                   <input type="hidden" id="import_type">
                   <div class="layui-upload">
					    <div class="upload-btn-box">
					      <button type="button" class="layui-btn layui-btn-normal upload-btn" id="chooseFile">选择文件</button>
					    </div>
					    <div class="layui-upload-list" id="fileList">
					      <table class="layui-table">
					        <thead>
					          <tr>
					            <th>文件名</th>
					            <th>大小</th>
					            <th>状态</th>
					          </tr>
					        </thead>
					        <tbody id="importList"></tbody>
					      </table>
					    </div>
					    <div class="upload-btn-box mt-10">
					    	<label style="line-height:20px;padding-top:10px;">导入模板下载：</label>
					    	<em>【<a  href='evalResultInfo/downFiles?fileName=eval_result_template.xlsx&type=template'>导入模板</a>】 </em>
					    </div>
					    <div class="upload-btn-box mt-10">
					      <button type="button" class="layui-btn" id="chooseFileAction">提交</button>
					      <button type="button" class="layui-btn" class="close" data-dismiss="modal" aria-label="Close">关闭</button>
					    </div>
				  </div>
               </div>
           </div>
       </div>
   </div>
   
   <div class="modal fade list-dialog" id="eval_inc_upload" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg">
       <div class="modal-dialog" role="document" style="width:800px">
           <div class="modal-content">
               <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                   </button>
               </div>
               <div class="modal-body" id="modalIncUpload">
                   <div class="layui-upload">
					    <div class="upload-btn-box">
					      <button type="button" class="layui-btn layui-btn-normal upload-btn" id="chooseIncFile">选择文件</button>
					    </div>
					    <div class="layui-upload-list" id="fileIncList">
					      <table class="layui-table">
					        <thead>
					          <tr>
					            <th>文件名</th>
					            <th>大小</th>
					            <th>状态</th>
					          </tr>
					        </thead>
					        <tbody id="importIncList"></tbody>
					      </table>
					    </div>
					    <div class="upload-btn-box mt-10">
					    	<label style="line-height:20px;padding-top:10px;">导入模板下载：</label>
					    	<em>【<a  href='evalResultInfo/downFiles?fileName=eval_result_template.xlsx&type=template'>导入模板</a>】 </em>
					    </div>
					    <div class="upload-btn-box mt-10">
					      <button type="button" class="layui-btn" id="chooseIncFileAction">提交</button>
					      <button type="button" class="layui-btn" class="close" data-dismiss="modal" aria-label="Close">关闭</button>
					    </div>
				  </div>
               </div>
           </div>
       </div>
   </div>
   
   <div class="modal fade list-dialog" id="eval_report_upload" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg">
       <div class="modal-dialog" role="document" style="width:800px">
           <div class="modal-content">
               <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                   </button>
               </div>
               <div class="modal-body" id="modalReportUpload">
               <form id="batchImportForm" method="post" enctype="multipart/form-data">
				   <div class="center">
					    <span id="uploadfile_span" class="btn btn-primary fileinput-button">
					      <span>选择文件</span>
					      <!-- <input type="file" id="upload_file"> -->
					      <input id="uploadfile" type="file" name="file" class="file" data-show-preview="false">
					    </span>
					    <div id="fileList_upload" class="mt-10">
					      <table class="table table-bordered table-hover" style="width:90%">
					        <thead>
					          <tr>
					            <th>文件名</th>
					            <th>大小</th>
					            <th>操作</th>
					          </tr>
					        </thead>
					        <tbody id="demoList"></tbody>
					      </table>
					    </div>
					    <div class="btn-box mt-10">
					      <a class="btn btn-primary" id="upload_file_submit">提交</a>
					      <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
					    </div>
					  </div>
                  </form>
               </div>
           </div>
       </div>
   </div>
   
	<script type="text/template" id="treadTpl">
    	<tr>
      		<td class="serial-num">
        		<span>
         			 <%= index %>
        		</span>
     		 </td>
      		 <td title="<%= enterprise_name %>">
        		<%= enterprise_name %>
      		 </td>
      		 <td title="<%= evalNum %>">
        		<%= evalNum %>
      		</td>
      		<td title="<%= apply_business %>">
        		<%= apply_business %>
      		</td>
      		<td title="<%= result %>">
        		<%= result %>
      		</td>
			<td title="<%= registered_address %>">
        		<%= registered_address %>
      		</td>
			<td title="<%= production_unit%>">
        		<%= production_unit %>
      		</td>
			<td title="<%= handleInfo %>">
        		<%= handleInfo %>
      		</td>
      		<td title="<%= house_node_num%>">
				<button type="button" class="table-btn num-color" onclick="linkPage('house_node_num','<%=apply_business%>','<%=evalNum%>')"  data-toggle="modal" data-target="#subDialog">
        		    <u>
                 	<%= house_node_num %>
                    </u>
                </button>
      		</td>
      		<td title="<%= link_num%>">
				<button type="button" class="table-btn num-color" onclick="linkPage('link_num','<%=apply_business%>','<%=evalNum%>')"  data-toggle="modal" data-target="#subDialog">
        		     <u>
                 	<%= link_num %>
                    </u>
                 </button>
      		</td>
     		<td title="<%=contacts%>">
				<button type="button" class="table-btn num-color" onclick="linkPage('contacts_info','<%=apply_business%>','<%=evalNum%>')"  data-toggle="modal" data-target="#subDialog">
        		   <u>
                  	<%= contacts %>
                  </u>
      		</td>
			<td id="eval_result_report_td_<%=evalNum%>" style="display:none">	
				<a id="eval_result_report_<%=evalNum%>" class="btn-link" style="display:none" data-toggle="modal" data-target="#eval_report_upload" onclick="upload_report('<%=evalNum%>')">评测报告</a>
				<a id="eval_result_edit_<%=evalNum%>" class="btn-link" style="display:none" data-toggle="modal" data-target="#eval_result_oper" onclick="result_edit('<%=evalNum%>')">修改</a>
				<a id="eval_result_del_<%=evalNum%>" class="btn-link" style="display:none" onclick="result_del('<%=evalNum%>')">删除</a>
			</td>
    	</tr>
  </script>
  <input type="hidden" id="userId" value="${userId}"/>
  <input type="hidden" id="userAuthority" value="${userAuthority}"/>
  <input type="hidden" id="evalNumHidden" value=""/>
</body>
<!-- <style>
  .clear { zoom:1; clear:both; }
  .clear:after { content:''; display:block; clear:both;}
  .upload-btn{
    background: #01135f;
  }
  #fileList{
    display: none;
  }
  .mt-10{
    margin-top: 10px;
  }
  .layui-upload{
    padding: 20px;
  }
 
</style> -->
 <style>
  .center{
    padding: 40px;
  }
  /* #fileList{
    display: none;
  } */
  .mt-10{
    margin-top:10px;
  }
  .upload-box{
    width: 100%;
    border: 1px solid #ccc;
  }
  .fileinput-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
  }
  .fileinput-button input{
    position:absolute;
    right: 0px;
    top: 0px;
    opacity: 0;
    height: 35px;
    line-height: 35px;
  }
  </style>
<script src="static/js/module/evalResultInfo.js" charset="utf-8" type="text/javascript"></script>
</html>